//
//  HomeGourmetViewController.h
//  OrderSeat
//
//  Created by haiming on 13-10-15.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import "SelectCircleView.h"
#import "SelectCuisinesView.h"
#import "SelectOrderView.h"

@class GourmetListSource;
@interface GourmetListViewController : BaseViewController<SelectCuisinesViewDelegate,SelectCircleViewDelegate,SelectOrderViewDelegate>

@property (strong, nonatomic) IBOutlet UIButton *toolButton1;
@property (strong, nonatomic) IBOutlet UIButton *toolButton2;
@property (strong, nonatomic) IBOutlet UIButton *toolButton3;
@property (strong, nonatomic) IBOutlet UIView   *toolsBarView;
@property (strong, nonatomic) IBOutlet UITableView *gourmetTable;

@property (strong, nonatomic) GourmetListSource *dataSource;

- (void)appendTableWith:(NSMutableArray *)data;

@end

@interface GourmetListSource : BaseDataSource<UIScrollViewDelegate,UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, assign) int pageNumber;
@property (nonatomic, strong) NSMutableArray *gourmetList;
@property (nonatomic, strong) GourmetListViewController *viewController;

- (void)fetchGourmetWithCuisines:(NSString*)cuisinesId circle:(NSString*)circleId order:(NSString *)orderId isLoadMore:(BOOL)isLoadMore;

@end